import request from "@/utils/request";
const BASE_URL = "admin";

//设备信息管理
//查
export const queryAllEquipmentInfo = (params) =>
    request.get(`${BASE_URL}/equipment/queryAllEquipmentInfo`, { params });

//编辑
export const updateEquipmentInfo = (params) =>{
    return request.post(`${BASE_URL}/equipment/updateEquipmentInfo?id=${params.id}`, params);
}

//删除
export const deleteEquipmentInfo = (id) =>
    request.delete(`${BASE_URL}/equipment/deleteEquipmentInfo`, {params:id});

//新增
export const addEquipmentInfo = (params) =>
    request.post(`${BASE_URL}/equipment/addEquipmentInfo`, params );

//查询全部的治疗室信息
export const queryAllTreatmentRoomNameAndId = (params) =>
    request.get(`${BASE_URL}/treatmentRoom/queryAllTreatmentRoomNameAndId`, { params });


